package com.tsn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 关注收藏表
 * </p>
 *
 * @author tsn
 * @since 2021-09-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Attention implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "Id", type = IdType.AUTO)
    private Integer Id;

    /**
     * 用户id
     */
    private Integer userId;
    @TableField(exist = false)
    private String userName;

    /**
     * 被关注id或收藏id
     */
    private Integer attentionId;

    /**
     * 0是关注，之后是收藏
     */
    private Integer type;


}
